// 临时缓存
export function getTmpCache(key) {
  return sessionStorage.getItem(key);
}

export function setTmpCache(key, value) {
  return sessionStorage.setItem(key, value);
}

export function removeTmpCache(key) {
  return sessionStorage.removeItem(key);
}

export function clearTmpCache() {
  return sessionStorage.clear();
}

// 长期缓存
export function getLgtCache(key) {
  return localStorage.getItem(key);
}

export function setLgtCache(key, value) {
  return localStorage.setItem(key, value);
}

export function removeLgtCache(key) {
  return localStorage.removeItem(key);
}

export function clearLgtCache() {
  return localStorage.clear();
}
